package com.chalk.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.chalk.model.Picture;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author glq
 * @since 2020-12-19
 */

public interface PictureService extends IService<Picture> {
    /**
     * 新增
     */
    public int addPicture(Picture entity);

    /**
     * 修改
     */
    public int updatePicture(Picture entity);

    /**
     * 删除
     */
    public int deletePicture(Integer id);

    /**
     * 小程序-获取轮播图分页
     * @param map
     * @return
     */
    public Page<Picture> getPicturesForPage(Map<String, Object> map);
}
